<?php

class user_profile extends ti_interface
{
	function __construct()
	{
		$this->init(__FILE__);
	}
	
	function show()
	{
		global $ti;
		$this->swap_phrase('title','title');
		$this->swap_block('center','profile',$this->query('get profile')->next());
	}
	
	function save()
	{
		$this->query('save');
		ti::redirect('user/profile/show');
	}
}

?>